package com.zrar.easyweb.demo.portal.feign;

import com.zrar.easyweb.demo.portal.vo.UserDetails;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务远程feign接口
 *
 * @author green
 * @date 2019/11/14
 * @company 安人股份
 * @desc
 */
@FeignClient("user-service")
public interface UserFeign {

    @GetMapping("/user/detail/{name}")
    public UserDetails detail(@PathVariable("name") String userId);

}
